time = 0

Spring = {}
function Spring.new()

  local _ = {}
  _.springConst = 3
  _.restLength = 2.5
  _.x1 = 0 --left end
  return _
end

SpringMass = {}
function SpringMass.new()
  local _ = {}
  _.mass = 0.5
  _.damping = 0.2
  return _
end

MAX_VARS = 40
vars = {}


mSpring = Spring.new()
mMass = SpringMass.new()



function setup()
  print('setup')
  
  vars[1] = 0
  vars[2] = 0
end

function draw()
  time = time + deltatime
  
  setcolor(255,255,255);
  drawRect(mousx-30,mousy,60,60);
end
